package com.project;

/**
 * 成员内部类
 */
public class InnerTest {
    public static void main(String[] args) {
        ClassA a = new ClassA();
        ClassA.InnerA i = a.new InnerA(); //普通成员内部类


        ClassA.InnerB m = new ClassA.InnerB();  //静态成员内部类
    }
}

class ClassA{
    public class InnerA{

        public InnerA(){
            System.out.println("InnerA构造");
        }
    }

    public static class InnerB{
        public InnerB(){
            System.out.println("InnerB构造");
        }
    }

}
